\hypertarget{class_brain}{\section{Brain Class Reference}
\label{class_brain}\index{Brain@{Brain}}
}


{\ttfamily \#include $<$brain.\-hpp$>$}



Collaboration diagram for Brain\-:
% FIG 0
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_brain_a92daf9737361454abbb5988a89b7ff40}{Brain} ()
\item 
\hyperlink{class_brain_a0e997fc498f92313d7af89ece7cef4fa}{Brain} (\hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} n\-Inputs, \hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} n\-Neurons\-Per\-Layer, \hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} n\-Layers, \hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} n\-Outputs)
\item 
\hyperlink{class_brain_af41db0fbf20565d17d36bad299ae0cac}{$\sim$\-Brain} ()
\item 
void \hyperlink{class_brain_ac80876d3cd168b2f638c49d03787ff22}{compute} (float $\ast$inputs, float $\ast$outputs)
\item 
int \hyperlink{class_brain_a843fd88f56948142b1934d25f8d16089}{copy} (\hyperlink{class_brain}{Brain} $\ast$source)
\item 
void \hyperlink{class_brain_a8d9c671760b41bd018b368fed8de928e}{mutate} (int rate)
\item 
void \hyperlink{class_brain_acf2c5a7b3a26c74236c14207b995bfe2}{crossover} (\hyperlink{class_brain}{Brain} $\ast$parent1, \hyperlink{class_brain}{Brain} $\ast$parent2)
\item 
void \hyperlink{class_brain_a6127669e8f3abf0b0c0701b4c8ccca89}{save\-Brain} (const char $\ast$filename)
\item 
void \hyperlink{class_brain_ae8e1470ecdf8b573f2c04fd45ff65560}{load\-Brain} (const char $\ast$filename)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{class_brain_a7b3aaa3307a7cee8d2e4016abb2dab33}{m\-\_\-n\-Inputs}
\item 
\hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{class_brain_a5976362424298953361cba95b77d97b5}{m\-\_\-n\-Neurons}
\item 
\hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{class_brain_ac8b6cce7f7364dfdff5911f68f0ad408}{m\-\_\-n\-Neurons\-Per\-Layer}
\item 
\hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{class_brain_a12ff1fd3e4fb46215445be3ae66ccd83}{m\-\_\-n\-Outputs}
\item 
\hyperlink{class_neuron}{Neuron} $\ast$ \hyperlink{class_brain_aaf3927cee92321395516852abb5e6395}{m\-\_\-input\-Neurons}
\item 
\hyperlink{class_neuron}{Neuron} $\ast$ \hyperlink{class_brain_aee2b8a0d3ef18e474253f7f3f2cf3377}{m\-\_\-body\-Neurons}
\item 
\hyperlink{class_neuron}{Neuron} $\ast$ \hyperlink{class_brain_a0c3cbbb061c0608005265d71fdab6176}{m\-\_\-output\-Neurons}
\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 7 of file brain.\-hpp.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_brain_a92daf9737361454abbb5988a89b7ff40}{\index{Brain@{Brain}!Brain@{Brain}}
\index{Brain@{Brain}!Brain@{Brain}}
\subsubsection[{Brain}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Brain\-::\-Brain} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_brain_a92daf9737361454abbb5988a89b7ff40}
\hypertarget{class_brain_a0e997fc498f92313d7af89ece7cef4fa}{\index{Brain@{Brain}!Brain@{Brain}}
\index{Brain@{Brain}!Brain@{Brain}}
\subsubsection[{Brain}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Brain\-::\-Brain} (
\begin{DoxyParamCaption}
\item[{{\bf uint}}]{n\-Inputs, }
\item[{{\bf uint}}]{n\-Neurons\-Per\-Layer, }
\item[{{\bf uint}}]{n\-Layers, }
\item[{{\bf uint}}]{n\-Outputs}
\end{DoxyParamCaption}
)}}\label{class_brain_a0e997fc498f92313d7af89ece7cef4fa}


Definition at line 6 of file brain.\-cpp.



References Neuron\-::init().



Here is the call graph for this function\-:
% FIG 1


\hypertarget{class_brain_af41db0fbf20565d17d36bad299ae0cac}{\index{Brain@{Brain}!$\sim$\-Brain@{$\sim$\-Brain}}
\index{$\sim$\-Brain@{$\sim$\-Brain}!Brain@{Brain}}
\subsubsection[{$\sim$\-Brain}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Brain\-::$\sim$\-Brain} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_brain_af41db0fbf20565d17d36bad299ae0cac}


Definition at line 48 of file brain.\-cpp.



\subsection{Member Function Documentation}
\hypertarget{class_brain_ac80876d3cd168b2f638c49d03787ff22}{\index{Brain@{Brain}!compute@{compute}}
\index{compute@{compute}!Brain@{Brain}}
\subsubsection[{compute}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Brain\-::compute} (
\begin{DoxyParamCaption}
\item[{float $\ast$}]{inputs, }
\item[{float $\ast$}]{outputs}
\end{DoxyParamCaption}
)}}\label{class_brain_ac80876d3cd168b2f638c49d03787ff22}


Definition at line 54 of file brain.\-cpp.



Referenced by main().



Here is the caller graph for this function\-:
% FIG 2


\hypertarget{class_brain_a843fd88f56948142b1934d25f8d16089}{\index{Brain@{Brain}!copy@{copy}}
\index{copy@{copy}!Brain@{Brain}}
\subsubsection[{copy}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Brain\-::copy} (
\begin{DoxyParamCaption}
\item[{{\bf Brain} $\ast$}]{source}
\end{DoxyParamCaption}
)}}\label{class_brain_a843fd88f56948142b1934d25f8d16089}


Definition at line 67 of file brain.\-cpp.

\hypertarget{class_brain_acf2c5a7b3a26c74236c14207b995bfe2}{\index{Brain@{Brain}!crossover@{crossover}}
\index{crossover@{crossover}!Brain@{Brain}}
\subsubsection[{crossover}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Brain\-::crossover} (
\begin{DoxyParamCaption}
\item[{{\bf Brain} $\ast$}]{parent1, }
\item[{{\bf Brain} $\ast$}]{parent2}
\end{DoxyParamCaption}
)}}\label{class_brain_acf2c5a7b3a26c74236c14207b995bfe2}


Definition at line 77 of file brain.\-cpp.

\hypertarget{class_brain_ae8e1470ecdf8b573f2c04fd45ff65560}{\index{Brain@{Brain}!load\-Brain@{load\-Brain}}
\index{load\-Brain@{load\-Brain}!Brain@{Brain}}
\subsubsection[{load\-Brain}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Brain\-::load\-Brain} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{filename}
\end{DoxyParamCaption}
)}}\label{class_brain_ae8e1470ecdf8b573f2c04fd45ff65560}


Definition at line 119 of file brain.\-cpp.

\hypertarget{class_brain_a8d9c671760b41bd018b368fed8de928e}{\index{Brain@{Brain}!mutate@{mutate}}
\index{mutate@{mutate}!Brain@{Brain}}
\subsubsection[{mutate}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Brain\-::mutate} (
\begin{DoxyParamCaption}
\item[{int}]{rate}
\end{DoxyParamCaption}
)}}\label{class_brain_a8d9c671760b41bd018b368fed8de928e}


Definition at line 71 of file brain.\-cpp.

\hypertarget{class_brain_a6127669e8f3abf0b0c0701b4c8ccca89}{\index{Brain@{Brain}!save\-Brain@{save\-Brain}}
\index{save\-Brain@{save\-Brain}!Brain@{Brain}}
\subsubsection[{save\-Brain}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Brain\-::save\-Brain} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{filename}
\end{DoxyParamCaption}
)}}\label{class_brain_a6127669e8f3abf0b0c0701b4c8ccca89}


Definition at line 82 of file brain.\-cpp.



\subsection{Member Data Documentation}
\hypertarget{class_brain_aee2b8a0d3ef18e474253f7f3f2cf3377}{\index{Brain@{Brain}!m\-\_\-body\-Neurons@{m\-\_\-body\-Neurons}}
\index{m\-\_\-body\-Neurons@{m\-\_\-body\-Neurons}!Brain@{Brain}}
\subsubsection[{m\-\_\-body\-Neurons}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Neuron}$\ast$ {\bf Brain\-::m\-\_\-body\-Neurons}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_brain_aee2b8a0d3ef18e474253f7f3f2cf3377}


Definition at line 13 of file brain.\-hpp.

\hypertarget{class_brain_aaf3927cee92321395516852abb5e6395}{\index{Brain@{Brain}!m\-\_\-input\-Neurons@{m\-\_\-input\-Neurons}}
\index{m\-\_\-input\-Neurons@{m\-\_\-input\-Neurons}!Brain@{Brain}}
\subsubsection[{m\-\_\-input\-Neurons}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Neuron}$\ast$ {\bf Brain\-::m\-\_\-input\-Neurons}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_brain_aaf3927cee92321395516852abb5e6395}


Definition at line 12 of file brain.\-hpp.

\hypertarget{class_brain_a7b3aaa3307a7cee8d2e4016abb2dab33}{\index{Brain@{Brain}!m\-\_\-n\-Inputs@{m\-\_\-n\-Inputs}}
\index{m\-\_\-n\-Inputs@{m\-\_\-n\-Inputs}!Brain@{Brain}}
\subsubsection[{m\-\_\-n\-Inputs}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uint} {\bf Brain\-::m\-\_\-n\-Inputs}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_brain_a7b3aaa3307a7cee8d2e4016abb2dab33}


Definition at line 8 of file brain.\-hpp.

\hypertarget{class_brain_a5976362424298953361cba95b77d97b5}{\index{Brain@{Brain}!m\-\_\-n\-Neurons@{m\-\_\-n\-Neurons}}
\index{m\-\_\-n\-Neurons@{m\-\_\-n\-Neurons}!Brain@{Brain}}
\subsubsection[{m\-\_\-n\-Neurons}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uint} {\bf Brain\-::m\-\_\-n\-Neurons}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_brain_a5976362424298953361cba95b77d97b5}


Definition at line 9 of file brain.\-hpp.

\hypertarget{class_brain_ac8b6cce7f7364dfdff5911f68f0ad408}{\index{Brain@{Brain}!m\-\_\-n\-Neurons\-Per\-Layer@{m\-\_\-n\-Neurons\-Per\-Layer}}
\index{m\-\_\-n\-Neurons\-Per\-Layer@{m\-\_\-n\-Neurons\-Per\-Layer}!Brain@{Brain}}
\subsubsection[{m\-\_\-n\-Neurons\-Per\-Layer}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uint} {\bf Brain\-::m\-\_\-n\-Neurons\-Per\-Layer}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_brain_ac8b6cce7f7364dfdff5911f68f0ad408}


Definition at line 10 of file brain.\-hpp.

\hypertarget{class_brain_a12ff1fd3e4fb46215445be3ae66ccd83}{\index{Brain@{Brain}!m\-\_\-n\-Outputs@{m\-\_\-n\-Outputs}}
\index{m\-\_\-n\-Outputs@{m\-\_\-n\-Outputs}!Brain@{Brain}}
\subsubsection[{m\-\_\-n\-Outputs}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uint} {\bf Brain\-::m\-\_\-n\-Outputs}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_brain_a12ff1fd3e4fb46215445be3ae66ccd83}


Definition at line 11 of file brain.\-hpp.

\hypertarget{class_brain_a0c3cbbb061c0608005265d71fdab6176}{\index{Brain@{Brain}!m\-\_\-output\-Neurons@{m\-\_\-output\-Neurons}}
\index{m\-\_\-output\-Neurons@{m\-\_\-output\-Neurons}!Brain@{Brain}}
\subsubsection[{m\-\_\-output\-Neurons}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Neuron}$\ast$ {\bf Brain\-::m\-\_\-output\-Neurons}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_brain_a0c3cbbb061c0608005265d71fdab6176}


Definition at line 14 of file brain.\-hpp.



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\hyperlink{brain_8hpp}{brain.\-hpp}\item 
\hyperlink{brain_8cpp}{brain.\-cpp}\end{DoxyCompactItemize}
